package org.zfes.snowier.cloud.zbss.cms.template.model;
import org.zfes.snowier.common.dao.IBaseModel;
public class CmsTemplate extends IBaseModel{

	private static final long serialVersionUID = 1L;
	
	public CmsTemplate() {}
	public CmsTemplate(Long id) {
		this.setId(id);
	}
	//<-------------------------------------------->

 
	@javax.validation.constraints.NotNull(message="模板名称不能为空")
	@javax.validation.constraints.NotBlank(message="模板名称不能为空")
	 @org.hibernate.validator.constraints.Length(min=0,max=150,message="模板名称长度不能大于150")
	  private java.lang.String name;
 
	@javax.validation.constraints.NotNull(message="最后修改时间不能为空")
	  private java.util.Date createTime;
 
	@javax.validation.constraints.NotNull(message="是否目录不能为空")
	  private java.util.Date updateTime;
 
	@javax.validation.constraints.NotNull(message="状态:不能为空")
	  private java.lang.Byte status;
 
	@javax.validation.constraints.NotNull(message="是否目录不能为空")
	  private java.lang.Byte isDirectory;
 
	 @org.hibernate.validator.constraints.Length(min=0,max=2147483647,message="模板内容长度不能大于2,147,483,647")
	  private java.lang.String path;
 
	 @org.hibernate.validator.constraints.Length(min=0,max=2147483647,message="长内容长度不能大于2,147,483,647")
	  private java.lang.String sourceContent;
 
	
	//<-------------------------------------------->
	public CmsTemplate setName(java.lang.String name){
		this.name=name==null?null:name.trim();
	 return this;
	}
	public java.lang.String getName(){
		return this.name;
	}
	public CmsTemplate setCreateTime(java.util.Date createTime){
	 this.createTime=createTime;
	 return this;
	}
	public java.util.Date getCreateTime(){
		return this.createTime;
	}
	public CmsTemplate setUpdateTime(java.util.Date updateTime){
	 this.updateTime=updateTime;
	 return this;
	}
	public java.util.Date getUpdateTime(){
		return this.updateTime;
	}
	public CmsTemplate setStatus(java.lang.Byte status){
	 this.status=status;
	 return this;
	}
	public java.lang.Byte getStatus(){
		return this.status;
	}
	public CmsTemplate setIsDirectory(java.lang.Byte isDirectory){
	 this.isDirectory=isDirectory;
	 return this;
	}
	public java.lang.Byte getIsDirectory(){
		return this.isDirectory;
	}
	public CmsTemplate setPath(java.lang.String path){
		this.path=path==null?null:path.trim();
	 return this;
	}
	public java.lang.String getPath(){
		return this.path;
	}
	public CmsTemplate setSourceContent(java.lang.String sourceContent){
		this.sourceContent=sourceContent==null?null:sourceContent.trim();
	 return this;
	}
	public java.lang.String getSourceContent(){
		return this.sourceContent;
	}

}
